\setuppagenumbering[state=stop]
\setupcolors
   [state=start]

\starttext
\usemodule[chart]
\setupFLOWcharts
  [%option=test,
   nx=4,
   ny=3,
   dx=1\bodyfontsize,
   dy=1\bodyfontsize,
   width=2\bodyfontsize,
   height=2\bodyfontsize,
   maxwidth=\textwidth]
\setupFLOWlines[dash=yes]

\definecolor [FLOWshapecolor]  [r=1, g=1, b=1]
\setupFLOWshapes
  [framecolor=FLOWshapecolor]
%\setupFLOWlines
%  [framecolor=FLOWlinecolor]

\startFLOWchart[taskOnNode]
\startFLOWcell
	\name		{T0}
	\location	{1,2}
	\shape		{35}
	\text		{$T_0$}


	\label		[t]{$p_0=0$}
	\connect 	[tl]{T2}
	\connect 	[rl]{T3}
	\connect 	[bl]{T1}
%	\comment	[b]{$A<B$}
\stopFLOWcell

\setupFLOWshapes
  [framecolor=FLOWlinecolor]

\startFLOWcell
	\name		{T1}
	\location	{2,3}
	\shape		{35}
	\text		{$T_1$}
	\label		[t]{$p_1=6$}
	\connect 	[rb]{T4}
%	\comment	[b]{$A<B$}
\stopFLOWcell
\startFLOWcell
	\name		{xxx}
	\location	{2,1}
	\shape		{35}
	\text		{$T_2$}
	\label		[t]{$p_2=4$}
	\connect 	[rt]{T4}
%	\comment	[b]{$A<B$}
\stopFLOWcell
	\setupFLOWlines[dash=no]
\startFLOWcell
	\name		{T2}
	\location	{2,1}
	\shape		{35}
	\text		{$T_2$}
	\label		[t]{$p_2=4$}
	\connect 	[bt]{T3}
	%	\connect 	[rt]{T4}
%	\comment	[b]{$A<B$}
\stopFLOWcell
\setupFLOWlines[dash=yes]

\startFLOWcell
	\name		{T3}
	\location	{3,2}
	\shape		{35}
	\text		{$T_3$}
	\label		[t]{$p_3=1$}
	\connect 	[rl]{T4}
%	\comment	[b]{$A<B$}
\stopFLOWcell
\setupFLOWshapes
  [framecolor=FLOWshapecolor]

\startFLOWcell
	\name		{T4}
	\location	{4,2}
	\shape		{35}
	\text		{$T_4$}
	\label		[t]{$p_4=0$}
%	\connect 	[prpl]{nonAC1}
%	\comment	[b]{$A<B$}
\stopFLOWcell


\stopFLOWchart


\FLOWchart[taskOnNode]

\stoptext



   
